-
-
Notifications
You must be signed in to change notification settings - Fork 383
[Autocomplete] Document how to disable default TomSelect plugins #3087
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 2.x
Are you sure you want to change the base?
[Autocomplete] Document how to disable default TomSelect plugins #3087
Conversation
raphael-geffroy
commented
Sep 18, 2025
Q | A |
---|---|
Bug fix? | no |
New feature? | no |
Docs? | yes |
Issues | Fix #3057 |
License | MIT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
You can disable default plugins using ``tom_select_options.plugins``:: | ||
|
||
$resolver->setDefaults([ | ||
'class' => Ingredient::class, | ||
'tom_select_options' => [ | ||
'plugins' => [ | ||
'clear_button' => false, // Disable the clear button | ||
'remove_button' => false, // Disable the remove button | ||
], | ||
], | ||
]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest a new dedicated section describing: why these plugins are added by default, and how you can describe them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a small dedicated section yep
And without a minimal explaantion on the "why" (let's maybe add a link to their documentation) ?
😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So how can we move forward here ? @raphael-geffroy you think you could add a first version of the section / paragraph suggested by @Kocal here ? If not, i'd suggest we merge this PR and open an issue for anyone to controbute ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll have a look at it this week-end, thanks !